#include "textana.h"
#include "ui_textana.h"

Textana::Textana(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Textana)
{
    ui->setupUi(this);
    ui->warning->hide();
}

Textana::~Textana()
{
    delete ui;
}

void Textana::on_return_2_clicked()
{
    this->hide();
    User *m=new User;
    m->show();
}


void Textana::on_choose_clicked()
{
    QString FileName= QFileDialog::getOpenFileName(this, "选择文件",
                                                    "::{20D04FE0-3AEA-1069-A2D8-08002B30309D}",
                                                    tr("Images (*.txt)"));
    ui->file->setText(FileName);
}


void Textana::on_fre_clicked()
{
    if(ui->file->text()!="")
    {
        this->hide();
        Freq *m=new Freq;
        m->show();
    }
    else
        ui->warning->show();
}

